﻿namespace OpenAiClient.Services
{
    public interface IConfigService
    {
        string Version { get; }

        string WebApiUrl { get; }
        string ServerIp { get; }
        int ServerPort { get; }
        int RequestTimeout { get; }
        string ApiUrl { get; }
        string ApiKey { get; }
        string AccountId { get; set; }
        string AesKey { get; }
        string ChatModel { get; }

        /// <summary>
        /// APP数据文件夹
        /// </summary>
        string AppDataDirectory { get; }

        void LoadConfig(string configName);

        void SetServerPara(string ip, int port, int requestTimeout);
        void SetSdkPara(string apiUrl, string apiKey, string chatModel);
    }
}
